﻿<%@ Page Language="C#" MasterPageFile="~/CmsMaster.Master" AutoEventWireup="true" CodeBehind="AddTimesheet.aspx.cs" Inherits="ContractManagementSystem.Presentation.TimesheetManagement.InsertTimesheet" Title="Timesheet Manager >>> Add Timesheet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../../Styles/ClientStyle.css" rel="stylesheet" type="text/css" />
    
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/JsLibrary.js"></script>        
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/jquery.js"></script>
    <script type = "text/javascript" language = "javascript" src = "../../JavaScript/menu.js"></script>

    <link href="../../JavaScript/validationEngine/css/jquery-ui-1.8.21.custom.css" rel="stylesheet"
        type="text/css" />
    <script src="../../JavaScript/validationEngine/js/jquery-ui-1.8.21.custom.min.js"
        type="text/javascript"></script>
        
    <script type="text/javascript">
        $.datepicker.formatDate("MM/dd/yyyy");
        $(document).ready(function(){
               $(".inp-datetime").datepicker();
       });
    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server"> 
<div class="CPF">   

    
    <div class="CPFGrid CPFaddtimesheet">
    <asp:GridView ID="GridViewTimesheet" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" Width="940px">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:TemplateField HeaderText="On Date">
                <ItemTemplate>
                    <asp:TextBox ID="textDate" CssClass="inp-datetime" runat="server" 
                        Text='<%# Eval("OnDate","{0:MM/dd/yyyy}") %>' 
                        Height="20px" Width="147px" ></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Time">
                <ItemTemplate>
                    <asp:TextBox ID="textTime" runat="server"  CssClass="CPFTextInput cpfTime" 
                        Height="20px" Width="50px"  ></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Description">
                <ItemTemplate>
                    <asp:TextBox ID="textDescription" runat="server" 
                        CssClass="CPFTextInput cpfDescription" Height="20px" Width="500px" ></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ContractNumber">
                <ItemTemplate>
                    <asp:DropDownList ID="DropDownListContractNumber" runat="server"  
                        CssClass="CPFTextInput cpfDropDown" Height="20px" Width="150px">
                    </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#24DECE" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    </div>
    
    <div id="CPFalertMessage">
        <asp:Label runat="server" ID="labelResultMessage" CssClass="CPFResultMessage" ></asp:Label>
    </div> 
    
    <div class="CPFfuntion-Button">
        <asp:Button runat="server" Text="Save" ID="buttonSave" CssClass="CPFButton1"
            onclick="ButtonSaveClick"/>
        <asp:Button ID="buttonReset" runat="server" Text="Reset" CssClass="CPFButton1" 
            onclick="ButtonResetClick"/>
    </div>
</div>
</asp:Content>
